package com.lovar.gaming.dao.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovar.gaming.dao.domain.SysUser;
import com.lovar.gaming.dao.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

/**
 * @author 穹龙
 * @description 针对表【sys_user(用户表)】的数据库操作Repository实现
 * @createDate 2024-08-06 17:08:17
*/
@Service
public class SysUserRepository extends ServiceImpl<SysUserMapper, SysUser> {

    /**
     * 根据主键获取用户表详情
     *
     * @param id 主键Id
     * @return SysUser
    */
    public SysUser queryById(String id) {
        return lambdaQuery().eq(SysUser::getId, id).one();
    }

}




